//
//  YGPatientAttributesTableViewCell.m
//  yuanshangyiliao
//
//  Created by icholab on 2021/3/17.
//

#import "YGPatientAttributesTableViewCell.h"
#import "YGDropdownListView.h"

@interface YGPatientAttributesTableViewCell()
@property (nonatomic, strong) YGDropdownListView *listView ;

@end

@implementation YGPatientAttributesTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initView];
        [self initContraints];
    }
    return self;
}

- (void)initView{

    [self addContentView:self.listView];
   
}

- (void)initContraints{
    [self.listView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(self.contentSuperView.mas_height);
        make.width.mas_equalTo(200);
       
    }];
    
}

- (YGDropdownListView *)listView{
    if (!_listView) {
        _listView =[[YGDropdownListView alloc] init];
        
    }
    return  _listView;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
